package com.csht.facelib.api;

import android.content.Context;

import com.csht.facelib.utils.Constants;

import java.io.File;

public class FaceSdk {
    private static FaceSdk instance;
    private Context mContext;

    public static FaceSdk getInstance(){
        if (instance == null)
            instance = new FaceSdk();
        return instance;
    }

    public void init(Context context){
        mContext = context;

        File dir = new File(Constants.PATH);
        if (!dir.exists())
            dir.mkdirs();
        File dir1 = new File(Constants.NOW_PATH);
        if (!dir1.exists())
            dir1.mkdirs();
        File dir2 = new File(Constants.ID_PHOTO_PATH);
        if (!dir2.exists())
            dir2.mkdirs();
    }

    public Context getContext(){
        return mContext;
    }
}
